package com.battle.pojo.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import com.battle.pojo.enums.CaseDispatchTypeEnum;
import jakarta.persistence.Column;
import jakarta.persistence.Entity;
import lombok.Data;
import nirvana.core.domains.ann.AccEntity;
import nirvana.core.domains.entity.DomainBaseEntity;
import nirvana.core.domains.enums.EntityType;

import java.time.LocalDateTime;

/**
 * @author anni.zhu
 * @author anni.zhu@king-v.com
 * Created in 2024/8/22 14:33
 */
@Data
@TableName(value = "CASE_DISPATCH",autoResultMap = true)
@Entity(name = "CASE_DISPATCH")
@AccEntity(value = "调派情况", type = EntityType.SERVICE_ENTITY)
public class CaseDispatch extends DomainBaseEntity<CaseDispatch> {

    /**
     * 警情id
     */
    @Column()
    private Long sirensId;

    /**
     * 战例id
     */
    @Column()
    private Long caseId;

    /**
     * 调派情况类型
     */
    @Column()
    private CaseDispatchTypeEnum type;

    /**
     * 主管机构
     */
    @Column(length = 255)
    private String responsibleOrgan;

    /**
     * 车辆名称
     */
    @Column(length = 255)
    private String vehicleName;

    /**
     * 车牌号
     */
    @Column(length = 255)
    private String licensePlateNumber;

    /**
     * 通知日期
     */
    @Column()
    private LocalDateTime informDate;

    /**
     * 出动日期
     */
    @Column()
    private LocalDateTime dispatchDate;

    /**
     * 到场日期
     */
    @Column()
    private LocalDateTime arriveDate;

    /**
     * 出水日期
     */
    @Column()
    private LocalDateTime effluentDate;

    /**
     * 停水日期
     */
    @Column()
    private LocalDateTime waterOutageDate;

    /**
     * 返回日期
     */
    @Column()
    private LocalDateTime returnDate;

    /**
     * 返队日期
     */
    @Column()
    private LocalDateTime regroupDate;

}
